package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 切片信息
 *
 * @author lilele
 */
@TableName(value = "admin_file_part")
@Data
public class AdminFilePartEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 存储到minio的文件名
     */
    @TableField(value = "fileName")
    private String fileName;

    /**
     * 桶名
     */
    @TableField(value = "bucketName")
    private String bucketName;

    /**
     * 文件大小
     */
    @TableField(value = "fileSize")
    private Long fileSize;

    /**
     * 文件md5，前端生成
     */
    @TableField(value = "md5")
    private String md5;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.UPDATE)
    private Date updatedTime;
}
